package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户优惠券表(UserCoupon)实体类
 *
 * @author makejava
 * @since 2025-07-14 15:24:54
 */
public class UserCoupon implements Serializable {
    private static final long serialVersionUID = 420469062953108184L;

    /**
     * 优惠券ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 优惠券关联id
     */
    private Integer couponId;

    /**
     * 状态(1-未使用,2-已使用,3-已过期)
     */
    private Byte status; // 修改为 Byte 类型

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 使用时间
     */
    private Date useTime;

    // Getters and Setters

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }
}
